<admintpl file="header" />
</head>
<body>
	<div class="wrap">
		{:sp_get_admin_breadcrumb()}
		<form class="well form-search" method="GET" action="{:U('Oauthadmin/index')}">
			UID: 
			<input type="text" name="uid" class="span1" value="{$uid}" placeholder="UID">&nbsp;
			昵称: 
			<input type="text" name="name" style="width: 90px;" value="{$name}" placeholder="请输入昵称">&nbsp;
			<select class="span1" style="width: 90px;" name="from">
				<option value="">来源</option>
				<foreach name="fromlist" key="k" item="name">
					<option value="{$k}" <eq name="k" value="$from">selected</eq>>{$name}</option>
				</foreach>
			</select> &nbsp;
			<select class="span1" style="width: 90px;" name="status">
				<option value="-1">绑定状态</option>
				<option value="1" <eq name="status" value="1">selected</eq>>已绑定</option>
				<option value="0" <eq name="status" value="0">selected</eq>>解除定</option>
			</select> &nbsp;
			<input type="submit" class="btn btn-primary" value="搜索" />
		</form>
		<form method="post" class="js-ajax-form">
			<table class="table table-hover table-bordered">
				<thead>
					<tr>
						<th align="center">ID</th>
						<th>{:L('USER_FROM')}</th>
						<th>昵称</th>
						<th>{:L('AVATAR')}</th>
						<th>{:L('BINGDING_ACCOUNT')}</th>
						<th>绑定状态</th>
						<th>{:L('FIRST_LOGIN_TIME')}</th>
						<th>{:L('LAST_LOGIN_TIME')}&IP</th>
						<th>{:L('LOGIN_TIMES')}</th>
						<th align="center">{:L('ACTIONS')}</th>
					</tr>
				</thead>
				<tbody>
					<foreach name="lists" item="vo">
					<tr>
						<td align="center">{$vo.id}</td>
						<td>{$fromlist[$vo['from']]}</td>
						<td>{$vo.name}</td>
						<td><img width="25" height="25" src="{$vo.head_img}" /></td>
						<td align="center">{$vo['uid']|default='无'}</td>
						<td>
						<eq name="vo.status" value="1"><font class="green">已绑定</font><else/><font class="red">解绑定</font></eq>
						</td>
						<td>{$vo['create_time']}</td>
						<td>
							{$vo['last_login_time']}<br/>
							{$vo.last_login_ip}
						</td>
						<td>{$vo.login_times}</td>
						<td align="center">
							<a href="{:U('Oauthadmin/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:L('DELETE')}</a>
						</td>
					</tr>
					</foreach>
				</tbody>
			</table>
			<div class="pagination">{$page}</div>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>